package core.imust.com.kaoshi;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

import static android.content.ContentValues.TAG;

/**
 * Created by lenovo on 2020/7/3.
 */

public class MyDBHelper extends SQLiteOpenHelper {

    public MyDBHelper(Context context) {
        super(context,"finaldb.db",null,1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        Log.i(TAG,"创建数据库");
        db.execSQL("create table cdinfo(id varchar(20),type varchar(20))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
